package com.top10.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.top10.common.DatabaseConst;
import com.top10.entity.CarCoupons;
import com.top10.mapper.CardCouponsMapper;
import com.top10.service.CarCouponsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarCouponsServiceImpl implements CarCouponsService {

    @Autowired
    private CardCouponsMapper cardCouponsMapper;

    @Override
    public List<CarCoupons> getCarCoupons(String shop_uuid)throws Exception{
        return cardCouponsMapper.selectList(new EntityWrapper<CarCoupons>().eq("shop_uuid",shop_uuid).eq("isdeleted",DatabaseConst.IS_DEFAULT_NO));
    }
}
